package com.stormrage.edu.serv.edu.impl;

import java.util.HashMap;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.stormrage.edu.dao.edu.EduMajorDao;
import com.stormrage.edu.serv.edu.EduMajorServ;
import com.stormrage.entity.edu.EduMajor;
import com.stormragetech.core.exception.StormrageTechException;

/**
 * @author www.stormragetech.com
 * @date 2016年1月19日
 * @version 1.0.0
 */
@Service
public class EduMajorServImpl implements EduMajorServ {

	private static final Logger logger = LoggerFactory.getLogger(EduMajorServImpl.class);

	@Autowired
	private EduMajorDao eduMajorDao;

	@Override
	public EduMajor queryByBunchId(final Integer arg0) throws StormrageTechException {

		logger.debug(" 【 Serv 】- 【 EduMajorServ 】- 【 QueryByBunchId 】- 开始运行 ");

		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", arg0);

		EduMajor entity = eduMajorDao.queryByBunchId(map);

		logger.debug(" 【 Serv 】- 【 EduMajorServ 】- 【 QueryByBunchId 】- 完成运行 ");
		return entity;
	}

}
